$ ->
  $(".datepicker").datetimepicker pickTime: false

getArea = (ip, i) ->
  $.ajax
    url: "/admin/log/iparea.do"
    data:
      ip: ip
    dataType: "json"
    success: (msg) ->
        $(".area")[i].innerText = (msg.ip + " [" + msg.city + "]")

$ ->
  i = 0
  while i < $(".area").length
    ip = $(".area")[i].innerText
    getArea ip, i
    i++
